package apidoc

import groovyx.net.http.ContentType
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.Method


def http = new HTTPBuilder()
http.get("http://www.baidu.com", Method.GET, ContentType.TEXT) { resp, reader ->
    println(resp)
    println(reader)
}
